package com.spring.shops.dao;

import com.spring.shops.model.dto.ProdPropDTO;
import com.spring.shops.model.entity.ProdProp1;
import com.spring.shops.model.entity.TzProdProp;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TzProdPropMapper {
    int deleteByPrimaryKey(Long propId);

    int  insert(ProdProp1 record);

    int insertSelective(TzProdProp record);

    TzProdProp selectByPrimaryKey(Long propId);

    int updateByPrimaryKeySelective(TzProdProp record);

    int updateByPrimaryKey(TzProdProp record);
    /**
     * 列出产品的所有属性
     * @return
     */
    @Select("select * from yami_shops.tz_prod_prop")
    List<TzProdProp> listSpac();

    TzProdProp[] selectByPageSearch(ProdPropDTO prodPropDTO);
    @Select("select * from tz_prod_prop")
    List<TzProdProp> selectAll();
}